package com.meilai.project.service.media.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.meilai.project.entity.media.MediaPointChooseDaterangeComboCount;
import com.meilai.project.mapper.media.MediaPointChooseDaterangeComboCountMapper;
import com.meilai.project.service.media.MediaPointChooseDaterangeComboCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xchen
 * @since 2022-03-13
 */
@Service
public class MediaPointChooseDaterangeComboCountServiceImpl extends ServiceImpl<MediaPointChooseDaterangeComboCountMapper, MediaPointChooseDaterangeComboCount> implements MediaPointChooseDaterangeComboCountService {

	@Autowired
	private MediaPointChooseDaterangeComboCountMapper comboCountMapper;

	@Override
	public int deleteByChooseId(Long chooseId) {
		return comboCountMapper.deleteByChooseId(chooseId);
	}

	@Override
	public int copyOldToNew(Long new_choose_id, Long new_daterange_id, Long old_choose_id, Long old_daterange_id) {
		return comboCountMapper.copyOldToNew(new_choose_id, new_daterange_id, old_choose_id, old_daterange_id);
	}

	@Override
	public List<MediaPointChooseDaterangeComboCount> listByChooseId(Long chooseId) {
		return comboCountMapper.listByChooseId(chooseId);
	}
}
